Skip to main content

metadata of image

Type

property

Summary

The metadata property of an image is a read only array of metadata from the image file.

Syntax

put the metadata of <imageObject> into <metadataArray>

Description

Use the metadata property to access the metadata of the image as an array. Other types of image and JPEG and PNG images without metadata will return empty.

The metadata array is the same form used for the image export commands. The image metadata property is read only.

Parameters

NameTypeDescription

metadataArray

array

An array of image metadata. Currently the only key supported is "density" with a value in pixels per inch (ppi) for JPEG and PNG files.

Examples

put the metadata of image 1 into metadataArray
set the width of image 1 \
to the width of image 1 div (metadataArray["density"] / 72)
set the height of image 1 \
to the height of image 1 div (metadataArray["density"] / 72)

command: export, export snapshot, export with palette

Compatibility and Support

Introduced

LiveCode 8.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?